package com.hl.ruoyilkshop.service;

import java.util.List;
import com.hl.ruoyilkshop.domain.BusinessUserRelation;

/**
 * 商家用户关联Service接口
 * 
 * @author ruoyi
 * @date 2025-08-08
 */
public interface IBusinessUserRelationService 
{
    /**
     * 查询商家用户关联
     * 
     * @param id 商家用户关联主键
     * @return 商家用户关联
     */
    public BusinessUserRelation selectBusinessUserRelationById(Long id);

    /**
     * 查询商家用户关联列表
     * 
     * @param businessUserRelation 商家用户关联
     * @return 商家用户关联集合
     */
    public List<BusinessUserRelation> selectBusinessUserRelationList(BusinessUserRelation businessUserRelation);

    /**
     * 根据用户ID查询默认商家关联
     * 
     * @param userId 用户ID
     * @return 商家用户关联
     */
    public BusinessUserRelation selectDefaultBusinessByUserId(Long userId);

    /**
     * 根据用户ID查询所有商家关联
     * 
     * @param userId 用户ID
     * @return 商家用户关联集合
     */
    public List<BusinessUserRelation> selectBusinessListByUserId(Long userId);

    /**
     * 新增商家用户关联
     * 
     * @param businessUserRelation 商家用户关联
     * @return 结果
     */
    public int insertBusinessUserRelation(BusinessUserRelation businessUserRelation);

    /**
     * 修改商家用户关联
     * 
     * @param businessUserRelation 商家用户关联
     * @return 结果
     */
    public int updateBusinessUserRelation(BusinessUserRelation businessUserRelation);

    /**
     * 批量删除商家用户关联
     * 
     * @param ids 需要删除的商家用户关联主键集合
     * @return 结果
     */
    public int deleteBusinessUserRelationByIds(Long[] ids);

    /**
     * 删除商家用户关联信息
     * 
     * @param id 商家用户关联主键
     * @return 结果
     */
    public int deleteBusinessUserRelationById(Long id);
}
